//
//  NSString+limit.h
//  NSString
//
//  Created by apple on 15/7/30.
//  Copyright (c) 2015年 tqh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSString (limit)
/* 限制TextFeild的长度*/
- (NSString *)limitInTextFieldLength:(UITextField *)textField length:(NSInteger)length;

/* 限制UITextView的长度*/
- (NSString *)limitInTextViewLength:(UITextView *)textView length:(NSInteger)length;
/**
 *  只包含字母
 */
- (BOOL)limitOnlyLetters;
/**
 *  只包含数字
 */
- (BOOL)limitOnlyNumbers;
/**
 *  只包含字母数字
 */
- (BOOL)limitOnlyAlphaNumeric;
/**
 *  验证手机号码
 *
 *  @return 真假
 */
- (BOOL) validateMobile;
/**
 *  验证密码
 *
 *  @return 真假
 */
- (BOOL) validatePassword;
/**
 *  验证帐号
 *
 *  @return 真假
 */
- (BOOL) validateAccount;


- (NSString *)stringAddMoney;
+ (NSString *)float4WithString:(NSString *)string;
+ (NSString *)float3WithString:(NSString *)string;
+ (NSString *)float2WithString:(NSString *)string;
+ (NSString *)float1WithString:(NSString *)string;
+ (NSString *)floatWithString:(NSString *)string;
/**
 *  获取苹果设备uudi
 *
 *  @return uuid
 */
+ (NSString*) getIphoneUUID;

/**
 *  json转string
 *
 */
+ (NSString*)dictionaryToJson:(NSDictionary *)dic;

//获取系统版本号
+ (NSString *)getIOSVersion;

@end
